<?php

class actKill extends action
{
	public function execute($m)
	{
		// Retrieve user model
		$uM = $m->getModel('user');
		
		// Set active row to the logged in user.
		$uM->setUser(-1);
		
		// Log the user out (kill the session)
		$uM->logout();
		
		// Save the action
		$this->act($m, $uM->getID() . ',status,' . $uM->getStatus(), 'contacts');
		
		// Put out that the action is succesful!
		$this->addOutput(1);
		
		$this->finish();
		
	} // end function
	
} // end class

$_ = 'actKill';

?>